<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        ul{
            list-style: none;
        }
        footer{
            width: 100%;
            height: 40px;
            border-top: 1px solid #cccccc;
            position:fixed;
            left: 0;
            bottom: 0;
        }
        ul{
            display: flex;
            justify-content: space-around;
        }
        ul>li{
            flex: 1;
            line-height: 40px;
            text-align: center;
        }
        .active{
            background: #cccccc;
            color: aliceblue;
        }
    </style>
</head>
<body>
    <div id="box">
        <hello>
            <li v-for="item in list">{{item}}</li>
        </hello>
    </div>
    <script>
        Vue.component("hello",{
            template:`
                <div>
                    <ul>
                       <slot></slot>
                    </ul>
                </div>
            `
        })
       
        const vm = new Vue({
            el:"#box",
            data:{
                list:["qq","ww","ee"]
            },
            methods:{
            },
        })
    </script>
</body>
</html>